import request from '@/utils/request'

// 查询互动管理列表
export function listInteractions(query) {
  return request({
    url: '/interactions/interactions/list',
    method: 'get',
    params: query
  })
}

// 查询互动管理详细
export function getInteractions(id) {
  return request({
    url: '/interactions/interactions/' + id,
    method: 'get'
  })
}

// 新增互动管理
export function addInteractions(data) {
  return request({
    url: '/interactions/interactions',
    method: 'post',
    data: data
  })
}

// 修改互动管理
export function updateInteractions(data) {
  return request({
    url: '/interactions/interactions',
    method: 'put',
    data: data
  })
}

// 删除互动管理
export function delInteractions(id) {
  return request({
    url: '/interactions/interactions/' + id,
    method: 'delete'
  })
}
